package ooday05homework;

public class StaticDemo {
    public static void main(String[] args) {
        StaticVar a = new StaticVar();
        a.show();//a=1,b=1
        StaticVar a2 = new StaticVar();
        a2.show();//a=1,b=2
        StaticVar a3 = new StaticVar();
        a3.show();//a=1,b=3

        System.out.println(StaticVar.b); //静态变量用类名点访问
    }
}
